<?php

namespace app\api\validate;

use think\Validate;

class SystemScene extends Validate
{
    protected $rule = [

        'system_name' => ['require','length'=>'1,15'],
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [
        'system_name.require' => '系统名称不能为空',
        'system_name.length' => '系统名称为1-15个字符',
    ];



    protected $scene = [
        'update'  =>  ['system_name'],
    ];
}